package com.deyuanyun.pic.settings.domain.prvlg;

import com.deyuanyun.pic.common.validator.annotations.DataValidate;
import com.deyuanyun.pic.settings.support.validateFunc.*;
import com.deyuanyun.pic.common.validator.annotations.DataValidate;
import com.deyuanyun.pic.settings.support.validateFunc.CompanyValidata;
import com.deyuanyun.pic.settings.support.validateFunc.DepartmentValidata;
import com.deyuanyun.pic.settings.support.validateFunc.EmailValidata;
import com.deyuanyun.pic.settings.support.validateFunc.MobilePhoneValidata;
import com.deyuanyun.pic.settings.support.validateFunc.PositionValidata;
import com.deyuanyun.pic.settings.support.validateFunc.SexValidata;
import com.deyuanyun.pic.settings.support.validateFunc.UserNameValidata;

public class UserImpVO {
	// 用户名称
	@DataValidate(notNull = true,notNullMessage="用户名称不能为空",lengthLimit = "{0,10}",lengthLimitMessage="用户名称过长，请重新输入", myFunction = UserNameValidata.class, myFunctionMessage = "用户名称已存在，请更换")
	private String username;
	// 手机号码
	@DataValidate(regEx="^((13\\d{9}$)|(15[0,1,2,3,5,6,7,8,9]\\d{8}$)|(18[0,2,5,6,7,8,9]\\d{8}$)|(147\\d{8})$)",regExMessage="不是有效的手机号", myFunction = MobilePhoneValidata.class, myFunctionMessage = "手机号已存在,请重新录入")
	private String mobile;
	// 邮箱
	@DataValidate(lengthLimit = "{0,40}",lengthLimitMessage="邮箱过长，请重新输入",regEx="\\w+@(\\w+.)+[a-z]{2,3}",regExMessage="不是有效的邮箱", myFunction = EmailValidata.class, myFunctionMessage = "邮箱已存在,请重新录入")
	private String email;
	// 姓名
	@DataValidate(notNull = true,notNullMessage="姓名不能为空",lengthLimit = "{0,10}",lengthLimitMessage="姓名过长，请重新输入")
	private String realName;
	// 性别
	@DataValidate(notNull = true,notNullMessage="性别不能为空", myFunction = SexValidata.class, myFunctionMessage = "性别只能是男或女")
	private String sex;
	// 工号
	@DataValidate(lengthLimit = "{0,20}",lengthLimitMessage="工号过长，请重新输入")
	private String empNo;
	// 公司
	@DataValidate(notNull = true, myFunction = CompanyValidata.class, myFunctionMessage = "公司不存在")
	private String company;
	// 部门
	@DataValidate(notNull = true, myFunction = DepartmentValidata.class, myFunctionMessage = "公司没有这个部门")
	private String department;
	// 职位
	@DataValidate( myFunction = PositionValidata.class, myFunctionMessage = "公司部门没有这个岗位")
	private String position;

	// 备注
	@DataValidate(lengthLimit = "{0,1000}",lengthLimitMessage="备注过长，请重新输入")
	private String remark;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getEmpNo() {
		return empNo;
	}

	public void setEmpNo(String empNo) {
		this.empNo = empNo;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

}
